import 'package:flutter_taotaoshipin/generated/json/base/json_field.dart';
import 'package:flutter_taotaoshipin/generated/json/drama_flower_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class DramaFlowerEntity {
	int? id;
	@JSONField(name: "chn_id")
	int? chnId;
	@JSONField(name: "drama_id")
	int? dramaId;
	@JSONField(name: "alias_title")
	String? aliasTitle;
	int? sort;
	int? tpl;
	int? ctime;

	DramaFlowerEntity();

	factory DramaFlowerEntity.fromJson(Map<String, dynamic> json) => $DramaFlowerEntityFromJson(json);

	Map<String, dynamic> toJson() => $DramaFlowerEntityToJson(this);

	DramaFlowerEntity copyWith({int? id, int? chnId, int? dramaId, String? aliasTitle, int? sort, int? tpl, int? ctime}) {
		return DramaFlowerEntity()
			..id= id ?? this.id
			..chnId= chnId ?? this.chnId
			..dramaId= dramaId ?? this.dramaId
			..aliasTitle= aliasTitle ?? this.aliasTitle
			..sort= sort ?? this.sort
			..tpl= tpl ?? this.tpl
			..ctime= ctime ?? this.ctime;
	}

	@override
	String toString() {
		return jsonEncode(this);
	}
}